package com.yumingjaing.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: John
 * @version: ContainerRefreshedListener.java, v1.0 2024年12月14日 20:02
 */
@Component
@Slf4j
public class ContainerRefreshedListener implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        log.info("Listener2-Container started. Preparing data now...");
    }
}